package com.zhijiaoyun.dao;

import java.util.List;

import com.zhijiaoyun.dao.core.IBaseDao;
import org.apache.ibatis.annotations.Param;

import com.zhijiaoyun.model.ShoppingCart;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IShoppingCartDao extends IBaseDao<ShoppingCart> {

	ShoppingCart selectByShoppingCartByIds(@Param("goodsId") Long goodsId, @Param("userId") Long userId, @Param("goodsType") int goodsType);

	ShoppingCart selectByCartIdUserId(@Param("cartId") Long cartId, @Param("userId") Long userId);

	List<ShoppingCart> selectByUserId(@Param("beginIndex") int beginIndex, @Param("pageSize") int pagesize, @Param("userId") Long userId);

	List<ShoppingCart> selectByCartIds(@Param("cartIds") List<String> cartIds);

	void deleteByCartIds(@Param("cartIds") List<String> cartIds);

	List<ShoppingCart> selectByCartIdsUserId(@Param("cartIds") List<String> cartIds, @Param("userId") long userId);
}